<template>
	<view :class="vi_pageSize">
		<vi-notify :top="topfix" ref="vi_notify"></vi-notify>
		<module-loading ref="vi_loading" :loading="vi_loading" :loadingMask="vi_loadingMask"></module-loading>
		<vi-headbar goback>
			<view slot="right">
				响应式
				<text class="response">开启</text>
				<text class="noresponse color-warning">关闭</text>
			</view>
			{{vi_pageTitle}}
		</vi-headbar>
		<view class="p-sm">
			此组件主要用于带有开关过渡动画的组件，如popup
		</view>
		<view class="docTable">
			<view class="th">
				<view>属性名</view>
				<view>类型</view>
				<view>默认值</view>
				<view>描述</view>
			</view>
			<view class="tr">
				<view>show</view>
				<view>Boolean</view>
				<view>false</view>
				<view>开关状态</view>
			</view>
			<view class="tr">
				<view>mode</view>
				<view>String</view>
				<view>fade</view>
				<view>动画类型，于actions.js内定义。未定义的动画无效</view>
			</view>
			<view class="tr">
				<view>forceDuration</view>
				<view>Number</view>
				<view>0</view>
				<view>强制动画完成时间，等比例加速或减速让动画在此时间完成。如果进入动画和退出动画不对称，将会导致动画速度不相等</view>
			</view>
			<view class="tr">
				<view>timingFunction</view>
				<view>String</view>
				<view>无</view>
				<view>默认缓动类型，优先级低于actions.js内的定义</view>
			</view>
			<view class="tr">
				<view>delay</view>
				<view>Number</view>
				<view>0</view>
				<view>默认延迟时间，优先级低于actions.js内的定义</view>
			</view>
			<view class="tr">
				<view>styles</view>
				<view>Object, String</view>
				<view>无</view>
				<view>根节点默认style样式，由于动画使用style实现，会覆盖根节点样式，需设置样式的情况由此传入</view>
			</view>
			<view class="tr">
				<view>customClass</view>
				<view>String</view>
				<view>无</view>
				<view>根节点样式名，仅对全局样式或穿透样式有效</view>
			</view>
			<view class="tr">
				<view>@click</view>
				<view>事件</view>
				<view>	</view>
				<view>点击事件，提交对象参数，包含detail:当前状态</view>
			</view>
			<view class="tr">
				<view>@click</view>
				<view>事件</view>
				<view>	</view>
				<view>点击事件，提交对象参数，包含detail:当前状态</view>
			</view>
			<view class="tr">
				<view>@change</view>
				<view>事件</view>
				<view>	</view>
				<view>状态改变事件，发生在打开动画前，或关闭动画后。提交对象参数，包含detail:当前状态</view>
			</view>
			<view class="tr">
				<view>@done</view>
				<view>事件</view>
				<view>	</view>
				<view>动画结束事件，发生在打开动、关闭动画结束后。提交对象参数，包含detail:当前状态</view>
			</view>
		</view>
		
		
		<view class="p-sm">
			<view class="py-sm">
				用法参照popup组件
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.response{
	display: if($useResponse, inline, none);
}
.noresponse{
	display: if($useResponse, none, inline);
}
</style>
